package gframework.bean.consulta;

import java.beans.BeanDescriptor;
import java.beans.SimpleBeanInfo;

public class ConsultaBeanInfo extends SimpleBeanInfo {
    private final static Class beanClass = Consulta.class;
    private static BeanDescriptor beanDescriptor = null;
    private static java.awt.Image icon = null;
    
    @Override
    public BeanDescriptor getBeanDescriptor() {
        beanDescriptor = new BeanDescriptor(beanClass);
        beanDescriptor.setDisplayName("Consulta");
        
        return beanDescriptor;
    }

     /*@Override
    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor consultaDescricaoPD = new PropertyDescriptor("consultaDescricao", beanClass);


            PropertyDescriptor rv[] = {consultaDescricaoPD};

            
            return rv;

        } catch (IntrospectionException e) {
            throw new Error(e.toString());
        }
    }*/

    @Override
    public java.awt.Image getIcon(int iconKind) {
        if (iconKind == ICON_COLOR_16x16 || iconKind == ICON_MONO_16x16) {
            icon = loadImage("consulta.png");
        } else if (iconKind == ICON_COLOR_32x32 || iconKind == ICON_MONO_32x32) {
            icon = loadImage("consulta.png");
        } else {
            icon = null;
        }
        
        return icon;
    }
}